var env = require('../config.json')
var knex = require('knex')({
	client: 'mysql',
	connection: {
		host: env.mysql.host,
		port: env.mysql.port,
		user: env.mysql.user,
		password: env.mysql.password,
		database: env.mysql.database
	}
})
var bookshelf = require('bookshelf')(knex)

module.exports = bookshelf;